<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@page import="java.util.LinkedList"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="GetData.DataWS"%>
<%@page import="DTO.sinhvien"%>



<h2>Danh sách giảng viên Khoa CÔNG NGHỆ PHẦN MỀM</h2>  
<div style="width: 100%;">

</div>

<form action="delete_teacher_list.jsp" method="post">

<table id="rounded-corner" summary="">
    <thead>
    <tr>
            <th scope="col" class="rounded-company">Chọn</th>
            <th scope="col" class="rounded">Tên Giảng Viên </th>
            <th scope="col" class="rounded">Email </th>
            <th scope="col" class="rounded">Ngày Sinh </th>
            <th scope="col" class="rounded">Giới Tính </th>
            <th scope="col" class="rounded">Học vị - Học hàm </th>
             <th scope="col" class="rounded">Sửa</th>
              <th scope="col" class="rounded-q4">Xóa</th>
        </tr>
    </thead>       
    <tbody> 
        <%
DataWS a=new DataWS();
List<dktc_ws.Giangvien> gv =new LinkedList<dktc_ws.Giangvien>();
gv=a.laydanhsachgiangvien(-1);

for(int i=0;i<gv.size();i++)
       {
    dktc_ws.Giangvien item=gv.get(i);
    //out.print(temp.getHoten());
%>

        <tr>
            <td><input type="checkbox" name="deletedTeachers" value="<%=item.getMagv()%>"></td>
            <td><%=item.getHotengv()%></td> 
            <td><%=item.getEmail() %></td> 
            <td><%=item.getNgaysinh()%></td>
             <td><%=item.getGioitinh()==1?"Nam":"Nữ"%></td>
              <td><%=item.getHocviHocham() %></td>
            <td><a href="?page=edit_teacher&id=<%=item.getMagv()%>"><img src="images/user_edit.png" alt="" title="" border="0" /></a></td> 
            <td><a href="?page=delete_teacher&id=<%=item.getMagv()%>" class="ask"><img src="images/trash.png" alt="" title="" border="0" /></a></td> 
        </tr>      
    	      
        <%}%>         
    </tbody>
</table>
    
<a href="?page=add_teacher" class="bt_green"><span class="bt_green_lft"></span><strong>Thêm giảng viên mới</strong><span class="bt_green_r"></span></a> 
     <!--a href="#" class="bt_blue"><span class="bt_blue_lft"></span><strong>View all items from category</strong><span class="bt_blue_r"></span></a--> 

</form>